﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media.Imaging;
using GMLogging;

namespace ThouShaltNotBrickLevelEditor.Models
{
    public sealed class BrickStateImages
    {
        #region Properties
        private Dictionary<string, BitmapImage> mBrickStateImageDict;
        #endregion

        #region Constructors
        public BrickStateImages(Dictionary<string, BitmapImage> pBrickStateImageDict)
        {
            if (pBrickStateImageDict == null)
            {
                Exception e = new ArgumentNullException("pBrickStateImageDict");
                Logger.Error(e.Message);
                throw e;
            }

            mBrickStateImageDict = pBrickStateImageDict;
        }
        #endregion

        #region Methods
        public BitmapImage GetBrickStateImage(string pBrickStateName)
        {
            return mBrickStateImageDict[pBrickStateName];
        }
        #endregion
    }
}